<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
 <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="${pageContext.request.contextPath}">
    
    <title>My JSP 'news.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  <ul>
  <c:forEach var="n" begin="${p.list}">
  
  <li><a href="news/show/${n.nid}"><c:out value="${n.ntitle}"></c:out></a>,${n.ncreateDate}<a href="news/del/${n.nid}">删除</a></li>
  
  </c:forEach>
   <li>
       <a href="news/${p.pageNumber-1}-${ntid}">上一页</a>&nbsp;<a href="news/${p.pageNumber+1}-${ntid}">下一页</a>&nbsp;<a href="news/${p.totalPage}-${ntid}">最后一页</a>
      </li>
  
  
  </ul>
  </body>
</html>
